import request from '@/utils/v2/request';

//在线校对接口
class onlineproofreaddAPI {
  //讯飞对比接口
  writeText(params){
    return request.post('/police/xunfei/write', params);
  }
  //加载错误集合接口
  getXunfeiErrorListsById(params){
    return request.post('/police/xunfei/byId', params);
  }
  //修改错误状态
  updateXunFeiErrorList(params){
    return request.put('/police/list', params);
  }
  //修改讯飞
  updateStatistics(params){
    return request.put('/police/statistics', params);
  }
  //修改sensitive信息泄露
  updateSensitive(params){
    return request.put('/police/sensitive', params);
  }
  //导入url
  importUrl(params){
    return request.post('/police/xunfei/importUrl', params);
  }

  //查询用户权限
  getAuth(){
    return request.post('/police/keyUser/getAuth');
  }

  //获取单条历史记录
  getStatistics(id){
    return request.get('/police/statistics/'+id);
  }
}
export const OnlineproofreaddAPI = new onlineproofreaddAPI();
